package com.designmodel.factorymodel.abstractfactory;

import com.designmodel.factorymodel.abstractfactory.memory.IMemory;
import com.designmodel.factorymodel.abstractfactory.memory.IntelMemory;
import com.designmodel.factorymodel.abstractfactory.motherboard.AsusMotherboard;
import com.designmodel.factorymodel.abstractfactory.motherboard.IMotherboard;

/**
 * Created by
 *  具体的产品的工厂，指定需要的内存和主板
 * @author touni
 * @date 2019/4/2
 * @time 15:52
 */
public class AsusComputerFactory implements AbstractFactory{
    public IMemory getMemory() {
        return new IntelMemory();
    }

    public IMotherboard getMotherboard() {
        return new AsusMotherboard();
    }
}
